﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    public enum DishNames
    {
        麻婆豆腐,
        酸辣土豆丝,
        东坡肉
    }

    class CookRobot : Robot
    {
        private DishNames dishNames;

        public DishNames DishNames
        {
            get { return this.dishNames; }
            set { this.dishNames = value; }
        }

        public CookRobot(string name, DishNames dishNames ):base( name)
        {
            this.dishNames = dishNames;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}，我会做{1}",base.Name, this.dishNames);
        }
    }
}
